home *** CD-ROM | disk | FTP | other *** search
- /*
- ** patch.library
- **
- ** Copyright © 1993-1997 by Stefan Fuchs
- ** Freely distributable.
- */
-
-
- /* Functions, used by many functions */
-
- struct Node *FindPatchNotify( struct MsgPort *);
- void SendNotify( ULONG, struct Patch *);
- ULONG DisconnectStartType( struct MasterPatch *);
- ULONG ConnectStartType( struct MasterPatch *);
- ULONG FillOrigType( struct MasterPatch *);
- ULONG TestUsage( struct Patch *);
- ULONG TestPCUsage( struct Patch *, APTR );
- void ReCalcStackSize( struct MasterPatch *);
- void PreAllocatedStacksAlloc( struct MasterPatch *, ULONG);
- void PreAllocatedStacksFree( struct MasterPatch *);
- struct MasterPatch *GetMasterPatch( struct Patch *);
- ULONG SAVEObtainSemaphore( void);
- ULONG SAVEObtainSemaphoreShared( void);
- ULONG TestPatchHandle( struct Patch *);
- struct PatchStack *AllocStack( ULONG );
- void FreeStack( struct PatchStack *);
- APTR BAllocmem( ULONG, ULONG);
-
-
- /* Functions, which may be called from assembler */
- struct PatchStack * LIBFUNC AllocStackCached( REGA0 struct Patch * GNUC_REGA0, REGD0 ULONG GNUC_REGD0);
- void LIBFUNC FreeStackCached( REGA1 struct PatchStack * GNUC_REGA1);
- ULONG LIBFUNC PatchMatch( REGA0 struct TLHeader * GNUC_REGA0);
-
-
- /* Functions, which can't be currently implemented in C */
- void ASMFUNC InitPatchCode( REGA0 struct Patch * GNUC_REGA0);
- void ASMFUNC GetPatchCodeTemplate( REGA0 struct Patch * GNUC_REGA0, REGA1 ULONG[] GNUC_REGA1);
- APTR ASMFUNC GetPC( REGA0 APTR GNUC_REGA0, REGA6 struct ExecBase * GNUC_REGA6);
- void ASMFUNC SetupAsmEnv( REGA0 struct PatchBase * GNUC_REGA0);